Are there
anything similar to an indexOf function in the NSString objects?
NSString indexOf in Objective-C
3182
07-Sep-2015
Updated on 08-Sep-2015
Tarun Kumar
08-Sep-2015If you want just know when String a contains String b use my way to do this.
#define contains(str1, str2) ([str1 rangeOfString: str2 ].location != NSNotFound)